package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * @description: 成员日报
 * @author: whf
 * @create: 2022-09-13 11:15
 **/
@Data
@EqualsAndHashCode
@ApiModel
@TableName("tb_user_daily_report" )
public class TbUserDailyReport {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField("USER_ID")
    private Long userId;

    @TableField(exist = false)
    private String userName;

    @TableField("report_date")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date reportDate;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private List<TbDailyReport> dailyReportList;

    /**
     * 0.未读。1.已读。2.已批注
     */
    @TableField("is_read")
    private Integer isRead;

    @TableField("read_user")
    private String readUser;

    @TableField(exist = false)
    private String delIds;

    @TableField(exist = false)
    List<TbDailyReportAnnotate> annotateList;
}
